<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>**公司欢迎您！</title>
	<script type="text/javascript">
		function LoginF(){
			var username=document.getElementById('username').value;
			if(username==""){
			 //	document.getElementById("userDiv").style.display="block";
			 	alert("用户名不能为空！");
				return;
			}
			var password=document.getElementById("password").value;
			if(password==""){
			//	document.getElementById('passDiv').style.display="block";
				alert("密码不能为空！");
				return;
			}
			document.forms[0].submit();
		}
		function ResetF(){
//			document.getElementById("username").value="";
//			document.getElementById("password").value="";
			document.forms[0].reset();
		}
	</script>
</head>
<body>
<center>
	<form action="login.do" method="post">
		<table>
			<tr ><h4>欢迎您登录 F**K OFF 系统！</h4></tr>
			<tr>
				<td>用户名：</td>
				<td><input type="text" name="username" id="username"/></td>
				<td><div id="userDiv" style="color:red; display: none">用户名不能为空！</div></td>
			</tr>
			<tr>
				<td>密码：</td>
				<td><input type="password" name="password" id="password"/></td>
				<td><div id="passDiv" style="color:red;display:none">密码不能为空！</div></td>
			</tr>
			<tr>
				<td><input type="button" value="Login" onclick="LoginF()"/></td>
				<td><input type="button" value="Reset" onclick="ResetF()"/></td>
			</tr>
		</table>
	</form>
</center>
</body>
</html>